#!/bin/bash

ROOT_DIR=$(cd `dirname $0`; pwd)

rm -rf ./capi/ohos_nweb
rm -rf ./cpptoc/ohos_nweb
rm -rf ./ctocpp/ohos_nweb

cd tools
python3 translator.py

cd $ROOT_DIR
file_list=`ls ./[bo]*/*/*`

for file in $file_list
do
  clang-format -style="{ColumnLimit: 80,PointerAlignment: Right,AlignTrailingComments: false,AllowShortFunctionsOnASingleLine: None,AlwaysBreakTemplateDeclarations: true}" -i $file
done
